﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LocationAdd.aspx.cs" Inherits="CostManage_LocationAdd" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>物理站址一览</title>
    <script type="text/javascript" src="../Scripts/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="../Scripts/jquery-ui-1.9.2.custom.min.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.bgiframe.js"></script> 
    <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script> 
    <link rel="Stylesheet" href="../Content/redmond/jquery-ui-1.9.2.custom.min.css" />
    <link rel="stylesheet" href="../Content/SysManage.css" type="text/css" />  
    <script type="text/javascript" src="../Scripts/CostManage/LocationAdd.js"></script> 
</head>
<body>
    <form id="form1" runat="server">
    <div class="ContentDiv">
        <p>
                <label for="Dep_A" class="lTitle">
                    区域：</label>
                <asp:DropDownList ID="Dep_A" runat="server" Enabled="false">
                </asp:DropDownList>
                <label for="Cell_CHName_A" class="lTitle" style="margin-left:85px">
                    基站:</label>
                <asp:TextBox ID="Cell_CHName_A" runat="server" MaxLength="50" CssClass="text ui-widget-content"></asp:TextBox>
                <label style="font-size:small; color:Red">*模糊查找</label> 
                <asp:Button ID="Query_Location" runat="server" Text="查询" OnClick="QueryLocation_Click" CssClass="BtnLeft" />                
                <asp:Button ID="AddLocation" runat="server" CssClass="BtnLeft" Text="新增站址" OnClick="AddLocation_Click" /> 
            </p>
            <asp:GridView ID="LocationList" runat="server" AutoGenerateColumns="False" EmptyDataText="对不起,未找到相关数据！"
                Width="100%" CssClass="ui-widget ui-widget-content" OnRowCommand="Location_RowCommand">
                <HeaderStyle CssClass="ui-widget-header" />
                <Columns>
                    <asp:BoundField DataField="PHYSICAL_NAME" HeaderText="站点名称" SortExpression="PHYSICAL_NAME"
                        ReadOnly="True"></asp:BoundField>
                    <asp:BoundField DataField="Count2G" HeaderText="2G逻辑站点数" SortExpression="Count2G" />         
                    <asp:BoundField DataField="Count3G" HeaderText="3G逻辑站点数" SortExpression="Count3G" />           
                    <asp:BoundField DataField="CellOwner" HeaderText="基站归属" SortExpression="CellOwner" />
                    <asp:BoundField DataField="Cell_Type" HeaderText="基站类型" SortExpression="Cell_Type" />
                    <asp:BoundField DataField="MAINTER" HeaderText="维护员" SortExpression="MAINTER" />             
                    <asp:TemplateField>
                        <ItemStyle HorizontalAlign="Right" />
                        <ItemTemplate>
                            <asp:Button ID="ShowDetail" runat="server" Font-Size="13px" CausesValidation="false"
                                Text="查看" CommandName="Show" CommandArgument='<%# Bind("PHYSICAL_NAME")%>' 
                                CssClass="ui-button ui-state-default ui-corner-all"/>
                            <asp:Button ID="ModifyLocation_G" runat="server" Font-Size="13px" CausesValidation="false"
                                Text="编辑" CommandName="ModifyLocation" 
                                CommandArgument='<%# Bind("PHYSICAL_NAME")%>' CssClass="ui-button ui-state-default ui-corner-all"/>                            
                             <asp:Button ID="DeleteLocation_G" runat="server" Font-Size="13px" CausesValidation="false"
                                Text="删除" CommandName="DeleteLocation" 
                                CommandArgument='<%# Bind("PHYSICAL_NAME")%>' CssClass="ui-button ui-state-default ui-corner-all" 
                                OnClientClick="return confirm('确认要删除该站址吗？');"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div style="text-align: right; padding: 5px;">
                <webdiyer:AspNetPager ID="LocationPager" runat="server" OnPageChanged="LocationPager_PageChanged">
                </webdiyer:AspNetPager>
            </div>
            <fieldset>
            <legend>待维护逻辑站点列表</legend>
            <asp:GridView ID="UnCellList" runat="server" AutoGenerateColumns="False" EmptyDataText="对不起,未找到相关数据！"
                Width="100%" CssClass="ui-widget ui-widget-content">
                <HeaderStyle CssClass="ui-widget-header" />
                <Columns>
                    <asp:BoundField DataField="COUNTY" HeaderText="县分" SortExpression="COUNTY"/>
                    <asp:BoundField DataField="CELL_CHNAME" HeaderText="逻辑站点" SortExpression="CELL_CHNAME" />
                    <asp:BoundField DataField="cell_address" HeaderText="位置信息" SortExpression="cell_address" />
                    <asp:BoundField DataField="CELL_CLASS" HeaderText="基站等级" SortExpression="CELL_CLASS">
                    </asp:BoundField>
                    <asp:BoundField DataField="CELL_CLASSIFICATION" HeaderText="网别" SortExpression="CELL_CLASSIFICATION" />
                </Columns>
            </asp:GridView>
            <div style="text-align: right; padding: 5px;">
                <webdiyer:AspNetPager ID="UnCellPager" runat="server" OnPageChanged="UnCellPager_PageChanged">
                </webdiyer:AspNetPager>
            </div>
            </fieldset>
   </div> 
   <div id="LocationDiv" class="DialogDiv">
        <div class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;" id="MsgDiv"> 
	            <p style="padding:4px 2px;"><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span> 
	            <strong>提示:</strong><label id="JQmsg" runat="server" style="color:Red;"></label></p>
            </div>     
        <fieldset>
                <p>
                    <label for="Cell_CHName">
                        基站:</label>
                    <asp:TextBox ID="Cell_CHName" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="50"></asp:TextBox>                    
                    </p>
                <p>
                    <asp:Button ID="Search_Cell" runat="server" Text="模糊搜索" OnClick="Search_Cell_Click" />
                    <asp:CheckBoxList ID="Celllist" runat="server" RepeatDirection="Vertical" CssClass="ui-widget ui-widget-content" Width="87%">
                    </asp:CheckBoxList>
                </p>
                <p>
                    <label for="Cell_Address" style="vertical-align: top;">
                        位置信息:</label>
                    <asp:TextBox ID="Cell_Address" ReadOnly="true" runat="server" TextMode="MultiLine" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="64" Columns="13" Rows="3"></asp:TextBox></p>                      
                <p>
                    <label for="PHYSICAL_NAME">
                        站点名称:</label>
                    <asp:TextBox ID="PHYSICAL_NAME" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="128"></asp:TextBox></p>               
               <p>
                    <label for="CellOwner">
                        基站归属:</label>
                    <asp:DropDownList runat="server" ID="CellOwner" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True">联通</asp:ListItem>
                        <asp:ListItem>移动</asp:ListItem>
                        <asp:ListItem>电信</asp:ListItem>
                    </asp:DropDownList></p> 
               <p class="ownProper">
                    <label for="Ownership">
                        房屋产权:</label>
                    <asp:DropDownList runat="server" ID="Ownership" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True">自有</asp:ListItem>
                        <asp:ListItem>租赁</asp:ListItem>
                        <asp:ListItem>无</asp:ListItem>
                    </asp:DropDownList></p> 
               <p>
                    <label for="Cell_Type">
                        基站类型:</label>
                    <asp:DropDownList runat="server" ID="Cell_Type" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True">宏基站</asp:ListItem>
                        <asp:ListItem>微基站</asp:ListItem>
                        <asp:ListItem>直放站</asp:ListItem>
                        <asp:ListItem>射频拉远</asp:ListItem>
                        <asp:ListItem>室内分布</asp:ListItem>
                    </asp:DropDownList></p>            
               <p class="ChangeShow">
                    <label for="Housing_Type">
                        房屋类型:</label>
                    <asp:DropDownList runat="server" ID="Housing_Type" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True" Value="">——请选择——</asp:ListItem>
                        <asp:ListItem>彩钢</asp:ListItem>
                        <asp:ListItem>砖混</asp:ListItem>
                    </asp:DropDownList></p>
                <p  class="ownProper">
                    <label for="PowerJoin">
                        停电接入:</label>
                    <asp:DropDownList runat="server" ID="PowerJoin" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True">2GBTS</asp:ListItem>
                        <asp:ListItem>3GNodeB</asp:ListItem>
                    </asp:DropDownList>
                </p>       
               <p  class="ownProper">
                    <label for="TransType">
                        网元类型:</label>
                    <asp:DropDownList runat="server" ID="TransType" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True" Value="">——请选择——</asp:ListItem>
                        <asp:ListItem>OptiX 155/622(Metro 2050)</asp:ListItem>
                        <asp:ListItem>OptiX 155/622H(Metro 1000)</asp:ListItem>
                        <asp:ListItem>OptiX 155C</asp:ListItem>
                        <asp:ListItem>OptiX 2500+(Metro 3000)</asp:ListItem>
                        <asp:ListItem>OptiX Metro 1000V3</asp:ListItem>
                        <asp:ListItem>OptiX Metro 500</asp:ListItem>
                        <asp:ListItem>OptiX OSN 1500</asp:ListItem>
                        <asp:ListItem>OptiX OSN 2500</asp:ListItem>
                        <asp:ListItem>OptiX OSN 3500</asp:ListItem>
                        <asp:ListItem>OptiX OSN 6800</asp:ListItem>
                        <asp:ListItem>OptiX OSN 7500</asp:ListItem>
                        <asp:ListItem>虚拟网元</asp:ListItem>
                        <asp:ListItem>微波</asp:ListItem>
                    </asp:DropDownList>
                </p>                 
               <p  class="ownProper">
                    <label for="PowerModel">
                        开关电源:</label>
                    <asp:DropDownList runat="server" ID="PowerModel" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True">爱默生</asp:ListItem>
                        <asp:ListItem>动力源</asp:ListItem>
                        <asp:ListItem>中达</asp:ListItem>
                        <asp:ListItem>中兴</asp:ListItem>
                        <asp:ListItem>其他</asp:ListItem>
                    </asp:DropDownList>
                </p>        
               <p  class="ownProper">
                    <label for="BatteryModel">
                        电池容量:</label>
                    <asp:TextBox ID="BatteryModel" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="18"></asp:TextBox></p>     
               <p  class="ownProper">
                    <label for="AirModel">
                        空调功率:</label>
                    <asp:TextBox ID="AirModel" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="18"></asp:TextBox>(kw)</p> 
               <p  class="ownProper">
                    <label for="OutFireNum">
                        灭火器数:</label>
                    <asp:TextBox ID="OutFireNum" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="10"></asp:TextBox>                    
                    </p>  
               <p  class="ownProper">
                    <label for="TransModel">
                        变压型号:</label>
                    <asp:DropDownList runat="server" ID="TransModel" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True" Value="">无</asp:ListItem>
                        <asp:ListItem>20KW</asp:ListItem>
                        <asp:ListItem>6.3KW</asp:ListItem>
                    </asp:DropDownList>
                </p>   
               <p  class="ownProper">
                    <label for="CellPower">
                        基站功率:</label>
                    <asp:TextBox ID="CellPower" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="10"></asp:TextBox>                    
                    </p>   
               <p  class="ownProper">
                    <label for="BuildDate">
                        开站时间:</label>
                    <asp:TextBox ID="BuildDate" runat="server" CssClass="Wdate text ui-widget-content ui-corner-all"
                        MaxLength="10"></asp:TextBox>                    
                    </p>   
               <p  class="ownProper">
                    <label for="TowerType">
                        铁塔型号:</label>
                    <asp:DropDownList runat="server" ID="TowerType" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True">自立</asp:ListItem>
                        <asp:ListItem>拉线塔</asp:ListItem>
                        <asp:ListItem>双管拉线</asp:ListItem>
                        <asp:ListItem>三管拉线</asp:ListItem>
                        <asp:ListItem>拉线桅杆</asp:ListItem>
                        <asp:ListItem>楼顶拉线</asp:ListItem>
                        <asp:ListItem>仅抱杆</asp:ListItem>
                        <asp:ListItem>其他</asp:ListItem>
                    </asp:DropDownList>
                </p>  
               <p  class="ownProper">
                    <label for="ElecInput">
                        市电接入:</label>
                    <asp:DropDownList runat="server" ID="ElecInput" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True">专变</asp:ListItem>
                        <asp:ListItem>低压接入</asp:ListItem>
                        <asp:ListItem>转供电接入</asp:ListItem>
                    </asp:DropDownList>
                </p>    
               <p  class="ownProper">
                    <label for="MeterWay">
                        电费计量:</label>
                    <asp:DropDownList runat="server" ID="MeterWay" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True">后付费</asp:ListItem>
                        <asp:ListItem>预付费插卡</asp:ListItem>
                        <asp:ListItem>远程预付费</asp:ListItem>
                        <asp:ListItem>转供电协定包月</asp:ListItem>
                        <asp:ListItem>转供电后付费</asp:ListItem>
                        <asp:ListItem>转供电预付费</asp:ListItem>
                    </asp:DropDownList>
                </p>   
               <p  class="ownProper">
                    <label for="BillingWay">
                        计费方式:</label>
                    <asp:DropDownList runat="server" ID="BillingWay" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True">单费率</asp:ListItem>
                        <asp:ListItem>复费率</asp:ListItem>
                    </asp:DropDownList>
                </p>    
               <p  class="ownProper">
                    <label for="AMMETERNO">
                        电表户号:</label>
                    <asp:TextBox ID="AMMETERNO" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="64"></asp:TextBox>                    
                    </p>    
               <p>
                    <label for="Mainter">
                        维护员:</label>
                    <asp:TextBox runat="server" ID="Mainter" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="12" ></asp:TextBox>
                </p>  
            </fieldset>
            <p class="ActionP">
                <asp:Button ID="BtnCreate" runat="server" Text="新增" OnClick="BtnCreate_Click" />
                <asp:Button ID="BtnModify" runat="server" Text="修改" OnClick="BtnModify_Click" Visible="false" /> 
                <input id="BtnCancel" type="button" value="取消" /></p>
    </div>        
    </form>
</body>
</html>
